package com.treetao.union.core.exception;

import com.treetao.union.core.licence.ApplicationReadyEventListener;

public class DevMException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String message;
    private int code;

    public DevMException() {
        this.code = 500;
    }
    
    public DevMException(String msg,Throwable cause) {
        super(msg,cause);
        this.message = msg;
    }

    public DevMException(int code,String msg) {
        super(msg);
        this.code = code;
    }

    public DevMException( int code,String msg,Throwable cause) {
        super(msg,cause);
        this.message = msg;
        this.code = code;
    }

    public DevMException(String msg) {
        this.code = 500;
        this.message = msg;
    }

    public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
